#ifndef REPORTEDITDIALOG_H
#define REPORTEDITDIALOG_H

#include <QDialog>
#include "action.h"
#include <QTextEdit>
#include <QComboBox>
#include "treedoc.h"

class ReportEditDialog : public QDialog
{
    Q_OBJECT
public:
    explicit ReportEditDialog(Action* action, QWidget *parent = 0);
    QString content() const;
private:
    int m_aid;
    QTextEdit m_content;
    QComboBox m_reports;
    DbConnection* m_db;
    QString reportCaption(const QString&quarter) const;
signals:

private slots:
    void onOkClick();

};

#endif // REPORTEDITDIALOG_H
